package com.ruoyi.datastatistics.service;

import java.util.List;

import com.ruoyi.datastatistics.domain.ElectricityMeterHistoryData;
import com.ruoyi.datastatistics.domain.ElectricityRealtimegatherdataXb;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.datastatistics.domain.ElectricityRealtimegatherdataXb;
import com.ruoyi.datastatistics.vo.XbDatabase;
import com.ruoyi.datastatistics.vo.XbDatabaseVO;
import com.ruoyi.datastatistics.wxentity.WXRealtimegatherdataXb;

/**
 * 电-历史数据Service接口
 *
 * @author gdqt
 * @date 2025-03-10
 */
public interface IElectricityRealtimegatherdataXbService extends IService<ElectricityRealtimegatherdataXb>
{
    /**
     * 查询实时数据采集（小）
     *
     * @param TerminalID 实时数据采集（小）主键
     * @return 实时数据采集（小）
     */
    public ElectricityRealtimegatherdataXb selectRealtimegatherdataXbByTerminalID(String TerminalID);

    /**
     * 查询实时数据采集（小）列表
     *
     * @param realtimegatherdataXb 实时数据采集（小）
     * @return 实时数据采集（小）集合
     */
    public List<ElectricityRealtimegatherdataXb> selectRealtimegatherdataXbList(ElectricityRealtimegatherdataXb realtimegatherdataXb);

    /**
     * 新增实时数据采集（小）
     *
     * @param realtimegatherdataXb 实时数据采集（小）
     * @return 结果
     */
    public int insertRealtimegatherdataXb(ElectricityRealtimegatherdataXb realtimegatherdataXb);

    public Long selectListCountByParams(ElectricityRealtimegatherdataXb meterHistoryData);


    void batchinsertRealtimegatherdataXb(List<ElectricityRealtimegatherdataXb> list);

    /**
     * 修改实时数据采集（小）
     *
     * @param realtimegatherdataXb 实时数据采集（小）
     * @return 结果
     */
    public int updateRealtimegatherdataXb(ElectricityRealtimegatherdataXb realtimegatherdataXb);
    public int updateRealtimegatherdataXbByNb(ElectricityRealtimegatherdataXb realtimegatherdataXb);

    /**
     * 批量删除实时数据采集（小）
     *
     * @param TerminalIDs 需要删除的实时数据采集（小）主键集合
     * @return 结果
     */
    public int deleteRealtimegatherdataXbByTerminalIDs(String[] TerminalIDs);

    /**
     * 删除实时数据采集（小）信息
     *
     * @param TerminalID 实时数据采集（小）主键
     * @return 结果
     */
    public int deleteRealtimegatherdataXbByTerminalID(String TerminalID);

    List<ElectricityRealtimegatherdataXb> selectRealtimegatherdataXbList2(ElectricityRealtimegatherdataXb realtimegatherdataXb);
    List<ElectricityRealtimegatherdataXb> selectList(ElectricityRealtimegatherdataXb realtimegatherdataXb);


    public List<ElectricityRealtimegatherdataXb> selectRealtimegatherdataXbListForJob(ElectricityRealtimegatherdataXb realtimegatherdataXb);
    int batchinsertElectricityRealtimegatherdataXb(List<ElectricityRealtimegatherdataXb> list);


}
